import request from '@/utils/request'
//问题类型
export function questionType() {
  return request({
    url: '/manager/professorService/getQuestTypeList',
    method: 'post'
  })
}

//专家问答列表---新增了用户删除筛选
export function expertList(params) {
  return request({
    url: '/mgrService/mgrProfessor/sxProfessorAskList',
    method: 'post',
    data: params
  })
}

//前台显示
export function isShowQuestion(params) {
  return request({
    url: '/manager/professorService/changeStatus',
    method: 'post',
    data: params
  })
}
//专家列表
export function expert(params) {
  return request({
    url: '/manager/agency/employess/getProfessorList',
    method: 'post',
    data: params
  })
}
//专家回复
export function expertReply(params) {
  return request({
    url: '/manager/professorService/getAnswers',
    method: 'post',
    data: params
  })
}

//是否推荐
export function isRecommendQuestion(params) {
  return request({
    url: '/manager/professorService/changeRecommendStatus',
    method: 'post',
    data: params
  })
}
//根据专家名字搜索
export function getName(params) {
  return request({
    url: `/manager/professorService/querylike`,
    method: 'post',
    data: params
  })
}
//专家分页列表
export function getList(params) {
  return request({
    url: '/manager/professorService/agencypage',
    method: 'post',
    data: params
  })
}
// 修改专家信息
export function getChange(params) {
  return request({
    url: `/mgrService/mgrProfessor/updateMgrProfessor`,
    method: 'post',
    data: params
  })
}
// 导出问答列表
export function exportUserInfoExcel(params) {
  return request({
    url: '/mgrService/mgrProfessor/excel',
    method: 'post',
    data: params
  })
}
// 修改问答列表的单个用户权重
export function editSort(params) {
  return request({
    url: `/mgrService/mgrProfessor/sort`,
    method: 'post',
    data: params
  })
}
